package com.base.task.entity;

import lombok.Data;

/**
 * @ Author     ：山水之间-wxs
 * @ Description：批次执行参数
 * @ Date       ：Created in 19:18 2021/4/16
 * @ Modified By：wxs
 * @ Version    ：1.0
 */
@Data
public class BatchFilter extends BatchParam {

    private int pageNo;
    private int pageSize;

    public void setSize() {
        this.setPageSize(this.getThreadMaxNum() * this.getQueryMaxNum());
    }

    public static BatchFilter builder(){
        return new BatchFilter();
    }

}
